#include "mycallback.h"

MyCallback::MyCallback(QObject *parent) :
    Sbs2Callback(parent)
{
}


void MyCallback::getData(Sbs2Packet *packet)
{
    currentPacketCounter = packet->counter;
    ++ currentPacket;

    thisPacket = packet;
    sbs2DataHandler->setThisPacket(thisPacket);
    sbs2DataHandler->record();

    if (!(thisPacket->cq == -1))
	emit cqValues(thisPacket->cqName,thisPacket->cq);
}
